<form class="form-horizontal form-validate form-modal" method="post" action="{:url('info')}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{$row['id'] > 0?'编辑类目':'添加类目'}</h4>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="control-label">类目级别：</label>
                    <div class="col-sm-6 must">
                        <select class="input-xlarge" data-toggle="select2" data-notsearch="true" data-rule-required="true" name="pid">
                            <option value="0">顶级分类</option>
                            {$select|raw}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label">类目名称：</label>
                    <div class="col-sm-6 must">
                        <input type="text" class="input-xlarge" data-rule-maxlength="10" data-rule-required="true"
                               name="name" value="{$row.name}">
                    </div>
                </div>
<!--                <div class="form-group">-->
<!--                    <label class="control-label">抽佣比例：</label>-->
<!--                    <div class="col-sm-6 ">-->
<!--                        <input type="text" class="input-xlarge" data-rule-maxlength="10" name="commission_rate"-->
<!--                               value="{$row.commission_rate}">-->
<!--                        <label class="radio-inline red">-->
<!--                            类目商家抽佣百分比-->
<!--                        </label>-->
<!--                    </div>-->
<!--                </div>-->
<!--                <div class="form-group">-->
<!--                    <label class="control-label">提现手续费：</label>-->
<!--                    <div class="col-sm-6 ">-->
<!--                        <input type="text" class="input-xlarge" data-rule-maxlength="10" name="withdrawal_rate"-->
<!--                               value="{$row.withdrawal_rate}">-->
<!--                        <label class="radio-inline red">-->
<!--                            类目商家提现手续费百分比-->
<!--                        </label>-->
<!--                    </div>-->
<!--                </div>-->
                <div class="form-group">
                    <label class="control-label">状态：</label>
                    <div class=" controls">
                        <label class="radio-inline">
                            <input name="status" value="1" {$row['status']==1?'checked':''} class="js_undertake "
                            type="radio" >
                            正常
                        </label>
                        <label class="radio-inline">
                            <input name="status" value="0" {$row['status']==0?'checked':''} class="js_undertake"
                            type="radio" >隐藏
                        </label>
                    </div>
                    <div class="clearfix"></div>
                </div>

            </div>
            <div class="modal-footer">
                <input type="hidden" name="id" value="{$row.id|intval}"/>
                <button type="submit" class="btn btn-primary" data-loading-text="保存中..." disabled>保存</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</form>
